﻿<!--
 * Toast8
 * All rights reserved
 * Copyright (C) 2014 Peter Nylander
-->
<Window x:Class="Toast8.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tb="http://www.hardcodet.net/taskbar" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:vm="clr-namespace:Toast8.ViewModels"
        mc:Ignorable="d"
        Title="Toast8"
        Height="520"
        Width="450" 
        ResizeMode="NoResize"
        Icon="Assets/Toast8.ico"
        WindowStartupLocation="Manual"
        ShowInTaskbar="False"
        WindowStyle="ToolWindow">

    <Window.Resources>
        <vm:DesignTimeViewModel x:Key="DesignTimeViewModel"/>
    </Window.Resources>

    <Grid d:DataContext="{d:DesignInstance Type=vm:DesignTimeViewModel, IsDesignTimeCreatable=True}">
        <Grid.Background>
            <LinearGradientBrush EndPoint="1,1" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
                <GradientStop Color="#FFE0E0E0" Offset="1"/>
                <GradientStop Color="White"/>
            </LinearGradientBrush>
        </Grid.Background>

        <Image x:Name="imgArtwork" HorizontalAlignment="Left" Height="300" Margin="10,45,0,0" VerticalAlignment="Top" Width="300" Source="Assets/672CB80898818A67E7BCDBD6FAFA9F860D991780.jpg">
            <Image.BitmapEffect>
                <DropShadowBitmapEffect ShadowDepth="1" Softness="0.1" />
            </Image.BitmapEffect>
        </Image>
        <TextBlock Text="Now playing on Spotify" HorizontalAlignment="Left" Margin="10,5,0,0" VerticalAlignment="Top" Style="{StaticResource SubheaderTextBlockStyle}"/>
        <TextBlock Text="{Binding Path=Title, Mode=OneWay}" HorizontalAlignment="Left" Margin="10,350,0,0" Style="{StaticResource TitleTextBlockStyle}"/>
        <TextBlock Text="{Binding Path=Artist, Mode=OneWay}" HorizontalAlignment="Left" Margin="10,382,0,0" VerticalAlignment="Top" Width="424" Style="{StaticResource SubtitleTextBlockStyle}"/>
        <StackPanel HorizontalAlignment="Left"  Margin="10,408,0,0" VerticalAlignment="Top" Width="350" Orientation="Horizontal">
            <Button Content="&#xE100;" Style="{StaticResource AppBarButtonStyle}" Command="{Binding PreviousCommand}" IsEnabled="{Binding PreviousEnabled}"/>
            <Button Content="{Binding PlayButtonContent}" Style="{StaticResource AppBarButtonStyle}" Command="{Binding PlayCommand}"/>
            <Button Content="&#xE101;" Style="{StaticResource AppBarButtonStyle}" Command="{Binding NextCommand}" IsEnabled="{Binding NextEnabled}"/>
        </StackPanel>
        <TextBlock HorizontalAlignment="Left" Margin="375,10,0,0" TextWrapping="Wrap" Text="Settings" VerticalAlignment="Top"/>
    </Grid>
</Window>
